package com.taojie.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 营销
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "promotion")
@Api("营销活动")
public class Promotion {
    @ApiModelProperty("活动id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 活动名称
     */
    @ApiModelProperty("活动名称")
    @TableField(value = "name")
    private String name;

    /**
     * 开始时间
     */
    @ApiModelProperty("开始时间")
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 持续时间
     */
    @ApiModelProperty("持续时间 /天")
    @TableField(value = "time")
    private Integer time;

    /**
     * 介绍
     */
    @ApiModelProperty("活动介绍")
    @TableField(value = "introduce")
    private String introduce;
}